<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box-1{
            margin-top:20px;
            line-height:20px;
            background-color: #cd0000;
            width:200px;
            overflow:hidden;
        }
        .child-1{
            line-height:96px;
        }

        .box-2{
            margin-top:20px;
            line-height:96px;
            width:200px;
            overflow:hidden;
            background-color: #333;
        }
        .child-2{
            display:inline-block;
            font-size:18px;
        }
        
        .box-3{
            margin-top:20px;
            width:400px;
            background-color:#333;
            color:#fff;
        }
        .box-3 img{
            height:96px;
        }
        .box-4{
            width:500px;
            margin-top:20px;
            background-color: #cd0000;
        }
        .line-box{
            display: inline-block;
            background-color: #333;
            height:200px;
            width:200px;
        }
    </style>
</head>
<body>
    <div class="box-1">
        <span class="child-1">我是内容</span>    
    </div>

    <div class="box-2">
        <span class="child-2">我是内容</span>
    </div>

    <div class="box-3">
        x<img src="http://demo.cssworld.cn/images/common/m/1.jpg" alt="">
    </div>

    <div class="box-4"><span class="line-box"></span><span class="line-box"></span></div>
</body>
</html>